<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.10.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SARibbon: SAColorGridWidget类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/javascript" src="clipboard.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="cookie.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="doxygen-awesome.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectlogo"><img alt="Logo" src="SA-logo.png"/></td>
  <td id="projectalign">
   <div id="projectname">SARibbon<span id="projectnumber">&#160;2.4.2</span>
   </div>
   <div id="projectbrief">SARibbon wiki</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.10.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){initNavTree('class_s_a_color_grid_widget.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="summary">
<a href="#nested-classes">类</a> &#124;
<a href="#pub-types">Public 类型</a> &#124;
<a href="#signals">信号</a> &#124;
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#properties">属性</a> &#124;
<a href="class_s_a_color_grid_widget-members.html">所有成员列表</a>  </div>
  <div class="headertitle"><div class="title">SAColorGridWidget类 参考</div></div>
</div><!--header-->
<div class="contents">

<p>一个grid的Color布局  
 <a href="#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="_s_a_color_grid_widget_8h_source.html">SAColorGridWidget.h</a>&gt;</code></p>
<div class="dynheader">
类 SAColorGridWidget 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_s_a_color_grid_widget.png" alt=""/>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="nested-classes" name="nested-classes"></a>
类</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_a_color_grid_widget_1_1_private_data.html">PrivateData</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-types" name="pub-types"></a>
Public 类型</h2></td></tr>
<tr class="memitem:aa9cc46b3e06300629bc08fa842d1d9f8" id="r_aa9cc46b3e06300629bc08fa842d1d9f8"><td class="memItemLeft" align="right" valign="top"><a id="aa9cc46b3e06300629bc08fa842d1d9f8" name="aa9cc46b3e06300629bc08fa842d1d9f8"></a>
using&#160;</td><td class="memItemRight" valign="bottom"><b>FunColorBtn</b> = std::function&lt; void(<a class="el" href="class_s_a_color_tool_button.html">SAColorToolButton</a>*) &gt;</td></tr>
<tr class="separator:aa9cc46b3e06300629bc08fa842d1d9f8"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="signals" name="signals"></a>
信号</h2></td></tr>
<tr class="memitem:a424aa7db2a732802559d4db914fa98a8" id="r_a424aa7db2a732802559d4db914fa98a8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a424aa7db2a732802559d4db914fa98a8">colorClicked</a> (const QColor &amp;c)</td></tr>
<tr class="memdesc:a424aa7db2a732802559d4db914fa98a8"><td class="mdescLeft">&#160;</td><td class="mdescRight">对于check模式，check的颜色触发的信号  <br /></td></tr>
<tr class="separator:a424aa7db2a732802559d4db914fa98a8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a72c20fc7da01eca8fff3d08b04845515" id="r_a72c20fc7da01eca8fff3d08b04845515"><td class="memItemLeft" align="right" valign="top"><a id="a72c20fc7da01eca8fff3d08b04845515" name="a72c20fc7da01eca8fff3d08b04845515"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>colorPressed</b> (const QColor &amp;c)</td></tr>
<tr class="separator:a72c20fc7da01eca8fff3d08b04845515"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4f8c8beae36c827869a46fa2dff48f47" id="r_a4f8c8beae36c827869a46fa2dff48f47"><td class="memItemLeft" align="right" valign="top"><a id="a4f8c8beae36c827869a46fa2dff48f47" name="a4f8c8beae36c827869a46fa2dff48f47"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>colorReleased</b> (const QColor &amp;c)</td></tr>
<tr class="separator:a4f8c8beae36c827869a46fa2dff48f47"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a38cbafbc9b0758c610145dab63ab1a08" id="r_a38cbafbc9b0758c610145dab63ab1a08"><td class="memItemLeft" align="right" valign="top"><a id="a38cbafbc9b0758c610145dab63ab1a08" name="a38cbafbc9b0758c610145dab63ab1a08"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>colorToggled</b> (const QColor &amp;c, bool on)</td></tr>
<tr class="separator:a38cbafbc9b0758c610145dab63ab1a08"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a05e9ba1d119b9796a9c0099e3c2207a3" id="r_a05e9ba1d119b9796a9c0099e3c2207a3"><td class="memItemLeft" align="right" valign="top"><a id="a05e9ba1d119b9796a9c0099e3c2207a3" name="a05e9ba1d119b9796a9c0099e3c2207a3"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>SAColorGridWidget</b> (QWidget *par=nullptr)</td></tr>
<tr class="separator:a05e9ba1d119b9796a9c0099e3c2207a3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af52460cdef17162af8ba40d985bbca4a" id="r_af52460cdef17162af8ba40d985bbca4a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#af52460cdef17162af8ba40d985bbca4a">setColumnCount</a> (int c)</td></tr>
<tr class="memdesc:af52460cdef17162af8ba40d985bbca4a"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置列数，行数量会根据列数量来匹配,如果设置-1或者0，说明不限定列数量，这样会只有一行  <br /></td></tr>
<tr class="separator:af52460cdef17162af8ba40d985bbca4a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afdbaa6590200268b52d8b762889e158b" id="r_afdbaa6590200268b52d8b762889e158b"><td class="memItemLeft" align="right" valign="top"><a id="afdbaa6590200268b52d8b762889e158b" name="afdbaa6590200268b52d8b762889e158b"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>columnCount</b> () const</td></tr>
<tr class="separator:afdbaa6590200268b52d8b762889e158b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0bddc41919adf354fee61e0d1a0e1f08" id="r_a0bddc41919adf354fee61e0d1a0e1f08"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a0bddc41919adf354fee61e0d1a0e1f08">setColorList</a> (const QList&lt; QColor &gt; &amp;cls)</td></tr>
<tr class="memdesc:a0bddc41919adf354fee61e0d1a0e1f08"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置颜色列表  <br /></td></tr>
<tr class="separator:a0bddc41919adf354fee61e0d1a0e1f08"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4080ac93d4d42d962576a614ffb6ee25" id="r_a4080ac93d4d42d962576a614ffb6ee25"><td class="memItemLeft" align="right" valign="top">QList&lt; QColor &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a4080ac93d4d42d962576a614ffb6ee25">getColorList</a> () const</td></tr>
<tr class="memdesc:a4080ac93d4d42d962576a614ffb6ee25"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取颜色列表  <br /></td></tr>
<tr class="separator:a4080ac93d4d42d962576a614ffb6ee25"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a111a26fe07b4bdf81e5961b6e2a50abf" id="r_a111a26fe07b4bdf81e5961b6e2a50abf"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a111a26fe07b4bdf81e5961b6e2a50abf">spacing</a> () const</td></tr>
<tr class="memdesc:a111a26fe07b4bdf81e5961b6e2a50abf"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取间隔  <br /></td></tr>
<tr class="separator:a111a26fe07b4bdf81e5961b6e2a50abf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1bc04698d29097d16eaa64e491fd3ac7" id="r_a1bc04698d29097d16eaa64e491fd3ac7"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a1bc04698d29097d16eaa64e491fd3ac7">setSpacing</a> (int v)</td></tr>
<tr class="memdesc:a1bc04698d29097d16eaa64e491fd3ac7"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置间隔  <br /></td></tr>
<tr class="separator:a1bc04698d29097d16eaa64e491fd3ac7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a960b54ca76ad0ef5d84fda6749af29a5" id="r_a960b54ca76ad0ef5d84fda6749af29a5"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a960b54ca76ad0ef5d84fda6749af29a5">colorCount</a> () const</td></tr>
<tr class="memdesc:a960b54ca76ad0ef5d84fda6749af29a5"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取颜色的数量  <br /></td></tr>
<tr class="separator:a960b54ca76ad0ef5d84fda6749af29a5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a96eef9cad484df961573461929325bc6" id="r_a96eef9cad484df961573461929325bc6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a96eef9cad484df961573461929325bc6">setColorIconSize</a> (const QSize &amp;s)</td></tr>
<tr class="memdesc:a96eef9cad484df961573461929325bc6"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置图标 size  <br /></td></tr>
<tr class="separator:a96eef9cad484df961573461929325bc6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad10d9f998c48417811ea5c815e387081" id="r_ad10d9f998c48417811ea5c815e387081"><td class="memItemLeft" align="right" valign="top">QSize&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ad10d9f998c48417811ea5c815e387081">colorIconSize</a> () const</td></tr>
<tr class="memdesc:ad10d9f998c48417811ea5c815e387081"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取图标 size  <br /></td></tr>
<tr class="separator:ad10d9f998c48417811ea5c815e387081"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a201120d9a2306520084b32b15f324216" id="r_a201120d9a2306520084b32b15f324216"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a201120d9a2306520084b32b15f324216">setColorCheckable</a> (bool on=true)</td></tr>
<tr class="memdesc:a201120d9a2306520084b32b15f324216"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置颜色是否是checkable  <br /></td></tr>
<tr class="separator:a201120d9a2306520084b32b15f324216"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7b6040bb6dc0250c1bf44b3c95b44160" id="r_a7b6040bb6dc0250c1bf44b3c95b44160"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a7b6040bb6dc0250c1bf44b3c95b44160">isColorCheckable</a> () const</td></tr>
<tr class="memdesc:a7b6040bb6dc0250c1bf44b3c95b44160"><td class="mdescLeft">&#160;</td><td class="mdescRight">颜色是否是checkable  <br /></td></tr>
<tr class="separator:a7b6040bb6dc0250c1bf44b3c95b44160"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2b100907dfe1233cc07ddcbd54267d6b" id="r_a2b100907dfe1233cc07ddcbd54267d6b"><td class="memItemLeft" align="right" valign="top">QColor&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a2b100907dfe1233cc07ddcbd54267d6b">currentCheckedColor</a> () const</td></tr>
<tr class="memdesc:a2b100907dfe1233cc07ddcbd54267d6b"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取当前选中的颜色  <br /></td></tr>
<tr class="separator:a2b100907dfe1233cc07ddcbd54267d6b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a96bc1a39e288318b8b7831e18aad49f5" id="r_a96bc1a39e288318b8b7831e18aad49f5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_s_a_color_tool_button.html">SAColorToolButton</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a96bc1a39e288318b8b7831e18aad49f5">colorButton</a> (int index) const</td></tr>
<tr class="memdesc:a96bc1a39e288318b8b7831e18aad49f5"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取index对应的colorbutton  <br /></td></tr>
<tr class="separator:a96bc1a39e288318b8b7831e18aad49f5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad0fe869ae414dba0218f6c71021821f7" id="r_ad0fe869ae414dba0218f6c71021821f7"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ad0fe869ae414dba0218f6c71021821f7">setVerticalSpacing</a> (int v)</td></tr>
<tr class="memdesc:ad0fe869ae414dba0218f6c71021821f7"><td class="mdescLeft">&#160;</td><td class="mdescRight">等同GridLayout的VerticalSpacing属性  <br /></td></tr>
<tr class="separator:ad0fe869ae414dba0218f6c71021821f7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abbc7c1c4f1580b573b66003a749bfa62" id="r_abbc7c1c4f1580b573b66003a749bfa62"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#abbc7c1c4f1580b573b66003a749bfa62">verticalSpacing</a> () const</td></tr>
<tr class="memdesc:abbc7c1c4f1580b573b66003a749bfa62"><td class="mdescLeft">&#160;</td><td class="mdescRight">等同GridLayout的VerticalSpacing属性  <br /></td></tr>
<tr class="separator:abbc7c1c4f1580b573b66003a749bfa62"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a25016fd73db06cb1c88dc62100d75d8d" id="r_a25016fd73db06cb1c88dc62100d75d8d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a25016fd73db06cb1c88dc62100d75d8d">setHorizontalSpacing</a> (int v)</td></tr>
<tr class="memdesc:a25016fd73db06cb1c88dc62100d75d8d"><td class="mdescLeft">&#160;</td><td class="mdescRight">等同GridLayout的HorizontalSpacing属性  <br /></td></tr>
<tr class="separator:a25016fd73db06cb1c88dc62100d75d8d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a595463bda9f8036cd8ea030263bc03cf" id="r_a595463bda9f8036cd8ea030263bc03cf"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a595463bda9f8036cd8ea030263bc03cf">horizontalSpacing</a> () const</td></tr>
<tr class="memdesc:a595463bda9f8036cd8ea030263bc03cf"><td class="mdescLeft">&#160;</td><td class="mdescRight">等同GridLayout的HorizontalSpacing属性  <br /></td></tr>
<tr class="separator:a595463bda9f8036cd8ea030263bc03cf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a66b690d4ecee76399f021ec359cd4a5c" id="r_a66b690d4ecee76399f021ec359cd4a5c"><td class="memItemLeft" align="right" valign="top"><a id="a66b690d4ecee76399f021ec359cd4a5c" name="a66b690d4ecee76399f021ec359cd4a5c"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>clearCheckedState</b> ()</td></tr>
<tr class="memdesc:a66b690d4ecee76399f021ec359cd4a5c"><td class="mdescLeft">&#160;</td><td class="mdescRight">清除选中状态，这时没有颜色是选中的 <br /></td></tr>
<tr class="separator:a66b690d4ecee76399f021ec359cd4a5c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa6197e179cbf1c1b8c548c135a54954b" id="r_aa6197e179cbf1c1b8c548c135a54954b"><td class="memItemLeft" align="right" valign="top"><a id="aa6197e179cbf1c1b8c548c135a54954b" name="aa6197e179cbf1c1b8c548c135a54954b"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>iterationColorBtns</b> (FunColorBtn fn)</td></tr>
<tr class="separator:aa6197e179cbf1c1b8c548c135a54954b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a48dc38ba66a788b996bf5dfdb30a3edd" id="r_a48dc38ba66a788b996bf5dfdb30a3edd"><td class="memItemLeft" align="right" valign="top"><a id="a48dc38ba66a788b996bf5dfdb30a3edd" name="a48dc38ba66a788b996bf5dfdb30a3edd"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setRowMinimumHeight</b> (int row, int minSize)</td></tr>
<tr class="separator:a48dc38ba66a788b996bf5dfdb30a3edd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a79844f3577c33d4d26b2830fbe582f43" id="r_a79844f3577c33d4d26b2830fbe582f43"><td class="memItemLeft" align="right" valign="top"><a id="a79844f3577c33d4d26b2830fbe582f43" name="a79844f3577c33d4d26b2830fbe582f43"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setHorizontalSpacerToRight</b> (bool on=true)</td></tr>
<tr class="separator:a79844f3577c33d4d26b2830fbe582f43"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a630c97ba87ac3dd8b49eda081377de66" id="r_a630c97ba87ac3dd8b49eda081377de66"><td class="memItemLeft" align="right" valign="top"><a id="a630c97ba87ac3dd8b49eda081377de66" name="a630c97ba87ac3dd8b49eda081377de66"></a>
virtual QSize&#160;</td><td class="memItemRight" valign="bottom"><b>sizeHint</b> () const Q_DECL_OVERRIDE</td></tr>
<tr class="separator:a630c97ba87ac3dd8b49eda081377de66"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="properties" name="properties"></a>
属性</h2></td></tr>
<tr class="memitem:a5fd382933dfed26834b721811874105c" id="r_a5fd382933dfed26834b721811874105c"><td class="memItemLeft" align="right" valign="top"><a id="a5fd382933dfed26834b721811874105c" name="a5fd382933dfed26834b721811874105c"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>spacing</b></td></tr>
<tr class="separator:a5fd382933dfed26834b721811874105c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>一个grid的Color布局 </p>
<p>一个形如下面的颜色grid：</p>
<p>□□□□□□□□□</p>
<p>□□□□□□□□□</p>
<p>□□□□□□□□□ </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="a96bc1a39e288318b8b7831e18aad49f5" name="a96bc1a39e288318b8b7831e18aad49f5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a96bc1a39e288318b8b7831e18aad49f5">&#9670;&#160;</a></span>colorButton()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_s_a_color_tool_button.html">SAColorToolButton</a> * SAColorGridWidget::colorButton </td>
          <td>(</td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>index</em></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取index对应的colorbutton </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">index</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>如果没有返回nullptr </dd></dl>

</div>
</div>
<a id="a424aa7db2a732802559d4db914fa98a8" name="a424aa7db2a732802559d4db914fa98a8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a424aa7db2a732802559d4db914fa98a8">&#9670;&#160;</a></span>colorClicked</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void SAColorGridWidget::colorClicked </td>
          <td>(</td>
          <td class="paramtype">const QColor &amp;</td>          <td class="paramname"><span class="paramname"><em>c</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">signal</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>对于check模式，check的颜色触发的信号 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">c</td><td></td></tr>
    <tr><td class="paramname">on</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a960b54ca76ad0ef5d84fda6749af29a5" name="a960b54ca76ad0ef5d84fda6749af29a5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a960b54ca76ad0ef5d84fda6749af29a5">&#9670;&#160;</a></span>colorCount()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int SAColorGridWidget::colorCount </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取颜色的数量 </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="ad10d9f998c48417811ea5c815e387081" name="ad10d9f998c48417811ea5c815e387081"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad10d9f998c48417811ea5c815e387081">&#9670;&#160;</a></span>colorIconSize()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QSize SAColorGridWidget::colorIconSize </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取图标 size </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="a2b100907dfe1233cc07ddcbd54267d6b" name="a2b100907dfe1233cc07ddcbd54267d6b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2b100907dfe1233cc07ddcbd54267d6b">&#9670;&#160;</a></span>currentCheckedColor()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QColor SAColorGridWidget::currentCheckedColor </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取当前选中的颜色 </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="a4080ac93d4d42d962576a614ffb6ee25" name="a4080ac93d4d42d962576a614ffb6ee25"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4080ac93d4d42d962576a614ffb6ee25">&#9670;&#160;</a></span>getColorList()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QList&lt; QColor &gt; SAColorGridWidget::getColorList </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取颜色列表 </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="a595463bda9f8036cd8ea030263bc03cf" name="a595463bda9f8036cd8ea030263bc03cf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a595463bda9f8036cd8ea030263bc03cf">&#9670;&#160;</a></span>horizontalSpacing()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int SAColorGridWidget::horizontalSpacing </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>等同GridLayout的HorizontalSpacing属性 </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="a7b6040bb6dc0250c1bf44b3c95b44160" name="a7b6040bb6dc0250c1bf44b3c95b44160"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7b6040bb6dc0250c1bf44b3c95b44160">&#9670;&#160;</a></span>isColorCheckable()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool SAColorGridWidget::isColorCheckable </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>颜色是否是checkable </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="a201120d9a2306520084b32b15f324216" name="a201120d9a2306520084b32b15f324216"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a201120d9a2306520084b32b15f324216">&#9670;&#160;</a></span>setColorCheckable()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SAColorGridWidget::setColorCheckable </td>
          <td>(</td>
          <td class="paramtype">bool</td>          <td class="paramname"><span class="paramname"><em>on</em><span class="paramdefsep"> = </span><span class="paramdefval">true</span></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置颜色是否是checkable </p>
<p>checkable的颜色按钮是可checked的 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">on</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a96eef9cad484df961573461929325bc6" name="a96eef9cad484df961573461929325bc6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a96eef9cad484df961573461929325bc6">&#9670;&#160;</a></span>setColorIconSize()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SAColorGridWidget::setColorIconSize </td>
          <td>(</td>
          <td class="paramtype">const QSize &amp;</td>          <td class="paramname"><span class="paramname"><em>s</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置图标 size </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="a0bddc41919adf354fee61e0d1a0e1f08" name="a0bddc41919adf354fee61e0d1a0e1f08"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0bddc41919adf354fee61e0d1a0e1f08">&#9670;&#160;</a></span>setColorList()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SAColorGridWidget::setColorList </td>
          <td>(</td>
          <td class="paramtype">const QList&lt; QColor &gt; &amp;</td>          <td class="paramname"><span class="paramname"><em>cls</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置颜色列表 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">c</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="af52460cdef17162af8ba40d985bbca4a" name="af52460cdef17162af8ba40d985bbca4a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af52460cdef17162af8ba40d985bbca4a">&#9670;&#160;</a></span>setColumnCount()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SAColorGridWidget::setColumnCount </td>
          <td>(</td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>c</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置列数，行数量会根据列数量来匹配,如果设置-1或者0，说明不限定列数量，这样会只有一行 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">c</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a25016fd73db06cb1c88dc62100d75d8d" name="a25016fd73db06cb1c88dc62100d75d8d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a25016fd73db06cb1c88dc62100d75d8d">&#9670;&#160;</a></span>setHorizontalSpacing()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SAColorGridWidget::setHorizontalSpacing </td>
          <td>(</td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>v</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>等同GridLayout的HorizontalSpacing属性 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">v</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a1bc04698d29097d16eaa64e491fd3ac7" name="a1bc04698d29097d16eaa64e491fd3ac7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1bc04698d29097d16eaa64e491fd3ac7">&#9670;&#160;</a></span>setSpacing()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SAColorGridWidget::setSpacing </td>
          <td>(</td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>v</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置间隔 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">v</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ad0fe869ae414dba0218f6c71021821f7" name="ad0fe869ae414dba0218f6c71021821f7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad0fe869ae414dba0218f6c71021821f7">&#9670;&#160;</a></span>setVerticalSpacing()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SAColorGridWidget::setVerticalSpacing </td>
          <td>(</td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>v</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>等同GridLayout的VerticalSpacing属性 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">v</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a111a26fe07b4bdf81e5961b6e2a50abf" name="a111a26fe07b4bdf81e5961b6e2a50abf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a111a26fe07b4bdf81e5961b6e2a50abf">&#9670;&#160;</a></span>spacing()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int SAColorGridWidget::spacing </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取间隔 </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="abbc7c1c4f1580b573b66003a749bfa62" name="abbc7c1c4f1580b573b66003a749bfa62"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abbc7c1c4f1580b573b66003a749bfa62">&#9670;&#160;</a></span>verticalSpacing()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int SAColorGridWidget::verticalSpacing </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>等同GridLayout的VerticalSpacing属性 </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>C:/src/Qt/SARibbon/src/SARibbonBar/colorWidgets/<a class="el" href="_s_a_color_grid_widget_8h_source.html">SAColorGridWidget.h</a></li>
<li>C:/src/Qt/SARibbon/src/SARibbonBar/colorWidgets/<b>SAColorGridWidget.cpp</b></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="class_s_a_color_grid_widget.html">SAColorGridWidget</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.10.0 </li>
  </ul>
</div>
</body>
</html>
